#include<iostream>
using namespace std;

int main()
{
    int number;
    int factor;
    int remain;

    cin >> number;

    remain = number;
    factor = 2;
    cout << number << "=";
    while (factor <= remain)
    {
        if(remain % factor == 0)
        {
            cout << factor;
            remain = remain/factor;
            if (remain == 1)
                cout << endl;
            else
                cout << "*";
        }
        else
            factor++;
    }

    return 0;
}



